//
//  MDHNavigationController.h
//  JSTech
//
//  Created by 高得华 on 2019/4/27.
//  Copyright © 2020 华&梅. All rights reserved.
//  所有自定义导航栏视图控制器的基类

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
//MARK: - ==== 导航栏
@interface MDHNavigationController : UINavigationController

///// 显示导航栏的细线
//- (void)showNavigationBottomLine;
///// 隐藏导航栏的细线
//- (void)hideNavigationBottomLine;
///是否是最顶层的
- (void)navigation_top_vc;


/// 更新文字、title颜色 是否要 忽略 颜色
- (void)dh_updateNavigationBarTint:(UIViewController *_Nonnull)viewController ignoreTintColor:(BOOL)ignore;
/// 更新背景颜色
- (void)dh_updateNavigationBarBackground:(UIViewController *_Nonnull)viewController;
/// 更新导航栏
- (void)dh_updateNavigationBar:(UIViewController *_Nonnull)viewController;
/// 导航栏 分界线
- (void)dh_updateNavigationBarShadow:(UIViewController *_Nonnull)viewController;

@end

NS_ASSUME_NONNULL_END




//MARK: - ==== viewController 的 NavigationBar
@interface UIViewController (MDHNavigationBar)

/// 导航栏样式，默认样式
@property (nonatomic, assign) UIBarStyle dh_barStyle;
/// 导航栏前景色（item的文字图标颜色），默认黑色
@property (nonatomic, strong) UIColor * _Nonnull dh_tintColor;
/// 导航栏标题文字颜色，默认黑色
@property (nonatomic, strong) UIColor * _Nonnull dh_titleColor;
/// 导航栏标题文字字体，默认17号粗体
@property (nonatomic, strong) UIFont * _Nonnull dh_titleFont;
/// 导航栏背景色，默认白色
@property (nonatomic, strong) UIColor * _Nonnull dh_backgroundColor;
/// 导航栏背景图片
@property (nonatomic, strong) UIImage * _Nullable dh_backgroundImage;
/// 导航栏背景透明度，默认1
@property (nonatomic, assign) CGFloat  dh_barAlpha;
/// 导航栏底部分割线是否隐藏，默认不隐藏
@property (nonatomic, assign) BOOL  dh_shadowHidden;
/// 导航栏底部分割线颜色
@property (nonatomic, strong) UIColor * _Nonnull dh_shadowColor;
/// 是否开启手势返回，默认开启
@property (nonatomic, assign) BOOL  dh_enablePopGesture;

@end




@interface MDHFakeNavigationBar : UIView

/// 设置背景的颜色
- (void) dh_updateFakeBarBackground:(UIViewController *_Nullable)viewController;

/// 是否显示 分界线
- (void) dh_updateFakeBarShadow:(UIViewController *_Nullable)viewController;

@end


